From 3ca9a218ec049c877820d676ba25950f5e38d2fe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 4 May 2016 13:38:47 -0400 Subject: [PATCH] Set the proper state on the css node This will almost certainly overwritten before the widget gets to the screen, but while we are doing this, we might as well use the same state that we initialize the widgets state to. --- gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 3ebec0108e..6fde52e92f 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4417,7 +4417,7 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class) _gtk_size_request_cache_init (&priv->requests); priv->cssnode = gtk_css_widget_node_new (widget); - gtk_css_node_set_state (priv->cssnode, GTK_STATE_FLAG_DIR_LTR); + gtk_css_node_set_state (priv->cssnode, priv->state_flags); /* need to set correct type here, and only class has the correct type here */ gtk_css_node_set_widget_type (priv->cssnode, G_TYPE_FROM_CLASS (g_class)); gtk_css_node_set_name (priv->cssnode, GTK_WIDGET_CLASS (g_class)->priv->css_name); -- 2.30.2